<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>注册</title>
</head>
<body>
<form action="/reg/" method="post" novalidate autocomplete="off">
    {% csrf_token %}
    <div>
        <label for="{{ reg_obj.name.id_for_label }}">{{ reg_obj.name.label }}</label>
        {{ reg_obj.name }} {{ reg_obj.name.errors.0 }}
    </div>
    <div>
        <label for="{{ reg_obj.real_name.id_for_label }}">{{ reg_obj.real_name.label }}</label>
        {{ reg_obj.real_name }} {{ reg_obj.real_name.errors.0 }}
    </div>
    <div>
        <label for="{{ reg_obj.id_num.id_for_label }}">{{ reg_obj.id_num.label }}</label>
        {{ reg_obj.id_num }} {{ reg_obj.id_num.errors.0 }}
    </div>
    <div>
        <label for="{{ reg_obj.gender.id_for_label }}">{{ reg_obj.gender.label }}</label>
        {{ reg_obj.gender }} {{ reg_obj.gender.errors.0 }}
    </div>
    <div>
        <label for="{{ reg_obj.password.id_for_label }}">{{ reg_obj.password.label }}</label>
        {{ reg_obj.password }} {{ reg_obj.password.errors.0 }}
    </div>
    <div>
        <label for="{{ reg_obj.repwd.id_for_label }}">{{ reg_obj.repwd.label }}</label>
        {{ reg_obj.repwd }} {{ reg_obj.repwd.errors.0 }}
    </div>
    <div>
        <label for="{{ reg_obj.phone_num.id_for_label }}">{{ reg_obj.phone_num.label }}</label>
        {{ reg_obj.phone_num }} {{ reg_obj.phone_num.errors.0 }}
    </div>
    <div>
        <input type="submit" class="btn btn-success" value="注册">
    </div>

</form>


</body>
</html>